import request from '@/utils/request'

// 查询用户答题详情列表
export function listTopicUserdetail(query) {
  return request({
    url: '/applet/topicUserdetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户答题详情详细
export function getTopicUserdetail(id) {
  return request({
    url: '/applet/topicUserdetail/' + id,
    method: 'get'
  })
}

// 新增用户答题详情
export function addTopicUserdetail(data) {
  return request({
    url: '/applet/topicUserdetail',
    method: 'post',
    data: data
  })
}

// 修改用户答题详情
export function updateTopicUserdetail(data) {
  return request({
    url: '/applet/topicUserdetail',
    method: 'put',
    data: data
  })
}

// 删除用户答题详情
export function delTopicUserdetail(id) {
  return request({
    url: '/applet/topicUserdetail/' + id,
    method: 'delete'
  })
}
